package com.tpshion.chat.domain.model;

/**
 * @Description: 消息类型
 * @Author: tpshion
 * @Date: 2020/5/3 10:42
 * @Version: 1.0
 */
public enum MessageType {

    CONN("conn","连接websocket"),
    PING("ping","websocket心跳检查"),
    CHAT("chat","聊天消息"),
    REQUEST("request","添加好友请求"),
    TO_ALL("toALL","向所有用户推送消息");

    private String type;

    private String note;

    MessageType(String type, String note){
        this.type = type;
        this.note = note;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
